<div class="content-wrapper">
    <section class="content-header">
        <?php echo $this->partial('layout/breadcrumb'); ?>

        <h1 class="pull-right">
            <a href="<?php echo $this->url('sales-ship');?>" class="btn btn-default btn-sm"><i class="fa fa-arrow-left"></i> <?php echo $this->translate('返回发货单列表'); ?></a>
            <?php echo $this->HelpUrl('orderShipList'); ?>
        </h1>
    </section>

    <section class="content">

        <div class="row">
            <div class="col-md-12">
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title"><?php echo $this->translate('发货单导出'); ?></h3>
                    </div>
                    <?php
                    $form = $this->form;
                    $form->prepare();
                    ?>
                    <?php echo $this->form()->openTag($form); ?>
                    <div class="box-body">
                        <?php echo $this->partial('layout/messages'); ?>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?php echo $this->translate('开始时间'); ?></label>
                            <div class="col-sm-2">
                                <?php echo $this->formElement($form->get('startTime')); ?>
                                <?php echo $this->formElementErrors($form->get('startTime'), ['class'=>'error-message']); ?>
                            </div>
                            <p class="form-control-static text-sm text-blue"><?php echo $this->translate('订单的提交时间'); ?></p>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?php echo $this->translate('结束时间'); ?></label>
                            <div class="col-sm-2">
                                <?php echo $this->formElement($form->get('endTime')); ?>
                                <?php echo $this->formElementErrors($form->get('endTime'), ['class'=>'error-message']); ?>
                            </div>
                            <p class="form-control-static text-sm text-blue"><?php echo $this->translate('订单的提交时间'); ?></p>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?php echo $this->translate('配送方式'); ?></label>
                            <div class="col-sm-2">
                                <?php echo $this->formElement($form->get('deliveryType')); ?>
                                <?php echo $this->formElementErrors($form->get('deliveryType'), ['class'=>'error-message']); ?>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?php echo $this->translate('发货状态'); ?></label>
                            <div class="col-sm-2">
                                <?php echo $this->formElement($form->get('shipState')); ?>
                                <?php echo $this->formElementErrors($form->get('shipState'), ['class'=>'error-message']); ?>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-6">
                                <button type="submit" class="btn btn-primary"><i class="fa fa-check"></i> <?php echo $this->translate('点击导出发货单'); ?></button>
                            </div>
                        </div>
                    </div>
                    <?php echo $this->form()->closeTag(); ?>
                </div>
            </div>
        </div>

    </section>
</div>
<script type="text/javascript">
    laydate.render({elem: '#startTime'});
    laydate.render({elem: '#endTime'});
</script>